package com.springboot.springboot;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HomeController {

    @RequestMapping("/")
    public ModelAndView index(){
        ModelAndView view=new ModelAndView("index");

        return view;

    }

    @RequestMapping("body")
    public ModelAndView body(){
        ModelAndView view=new ModelAndView("body");

        return view;

    }
    @RequestMapping("list")
    public ModelAndView list(){
        ModelAndView view=new ModelAndView("list");

        return view;

    }
}
